﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ProductionManagement.Domain.Dtos
{
    public class AddFeeding
    {
        /// <summary>
        /// 补料id
        /// </summary>
        public int FeedingId { get; set; }

        /// <summary>
        /// 生产补料编号
        /// </summary>
        public string? FeNumber { get; set; }

        /// <summary>
        /// // 单据编号
        /// </summary>
        public string? FeDocumentNumber { get; set; }

        /// <summary>
        /// // 来源单据类型
        /// </summary>
        public string? FeSourceType { get; set; }

        /// <summary>
        ///  // 补料数量合计
        /// </summary>
        public decimal? FeNumTotal { get; set; }

        /// <summary>
        /// // 出库状态
        /// </summary>
        public int? FeOutState { get; set; }

        /// <summary>
        /// 补料日期
        /// </summary>
        public DateTime? FeDate { get; set; }
        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }

        public List<FeedingProducts> feedingProducts { get; set; }
    }

    public class FeedingProducts
    {
        /// <summary>
        /// 补料产品id
        /// </summary>
        public int FeedProductId { get; set; }
        /// <summary>
        /// 产品id
        /// </summary>
        public int ProductId { get; set; }
        /// <summary>
        /// 补料id
        /// </summary>
        public int Feeding { get; set; }
        /// <summary>
        /// 补料数量
        /// </summary>
        public int FePNum { get; set; }
        /// <summary>
        /// 人员档案id
        /// </summary>
        public int ManpowerId { get; set; }
        /// <summary>
        /// 交货日期
        /// </summary>
        public DateTime? FePDeliveryDate { get; set; }

        /// <summary>
        /// 公司id
        /// </summary>
        public string? Office_Id { get; set; }

        /// <summary>
        /// 用户id
        /// </summary>
        public int? User_Id { get; set; }
    }

}
